-- GENERATED SPELL FOR [Tempest Minion] --


function spell0_34049(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(64363,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34049', 0, 1)
end

function Sorts_34049(pUnit, Event)
local choix_sorts_34049 = math.random(0, 0)
if choix_sorts_34049 == 0 then
pUnit:RegisterEvent('spell0_34049', 1, 1)
end
end

function mob34049_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34049', math.random(1500, 3000), 1)
end

function mob34049_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34049_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34049_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34049, 1, 'mob34049_Action')
RegisterUnitEvent(34049, 2, 'mob34049_Leave')
RegisterUnitEvent(34049, 3, 'mob34049_Kill')
RegisterUnitEvent(34049, 4, 'mob34049_Die')
